/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/13 8:52
 */

public class Demo1 {
    //面向过程：大象装进冰箱
    //1.打开冰箱门
    //2.把大象装进去
    //3.关闭冰箱门

    public static void main(String[] args) {

        Demo1 demo1 = new Demo1();
        //1.打开冰箱门
        //2.把大象装进去
        //3.关闭冰箱门
        demo1.open();
        demo1.putElephant();
        demo1.close();

    }
    //static静态的关键字，修饰方法，属性，代码块
    public static void open(){
        System.out.println("打开冰箱门");
    }
    public static void close(){
        System.out.println("关闭冰箱门");
    }
    public static void putElephant(){
        System.out.println("把大象装进去");
    }
}